<?php

namespace common\components;


/**
 * User: Drery
 * Date: 2016/1/27
 * Time: 16:25
 */
class RegularHelper
{
    const PATTERN_PHONE = '/1[0-9]{10}/';
    const PATTERN_CHINESE_NAME = '/^[\x{4E00}-\x{9FFF}]{2,5}$/u';
    const PATTERN_IDENTITY_CARD = '/^(\d{3}){4,5}\d{2}[0-9a-zA-Z]$/';
    const PATTERN_QUALIFICATION = '/^[0-9a-zA-Z]{18,21}$/';
}